package eli.turchinsky.software.agame.enteties;

import eli.turchinsky.software.agame.R;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;

public class Block extends GameEntety {
	private Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
	public Block(float x, float y, float width, float height, Resources resources) {
		super(x, y, width, height, resources);
		Bitmap bMap = BitmapFactory.decodeResource(resources,R.drawable.ic_launcher);
		_sprite.Initialize(bMap, (int)_width,(int) _height, 5, 1);
	}
	public void draw(Canvas canvas){
		paint.setStyle(Paint.Style.FILL);
		paint.setColor(Color.parseColor("#FF0000"));
		canvas.drawRect(getPosition().getX(), getPosition().getY(),getPosition().getX()+ _width,getPosition().getY()+ _height, paint);
	}

}
